package com.electric.service;

import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.service.IService;
import com.electric.entity.RepairRecord;

/**
 * <p>
 * 故障记录 服务类
 * </p>
 *
 * @author zhangbin
 * @since 2018-08-28
 */
public interface IRepairRecordStatisticsService extends IService<RepairRecord> {
	/**
	 * 根据用户和时间段统计饼图
	 * 
	 * @param statisticsType
	 * @param startDate
	 * @param endDate
	 * @return
	 */
	List<Map<String, Object>> statisticsCustomerPie(String startDate, String endDate);

	/**
	 * 根据电压等级和时间段统计饼图
	 * 
	 * @param statisticsType
	 * @param startDate
	 * @param endDate
	 * @return
	 */
	List<Map<String, Object>> statisticsVoltageLevelPie(String startDate, String endDate);

	/**
	 * 根据维修类型和时间段统计饼图
	 * 
	 * @param statisticsType
	 * @param startDate
	 * @param endDate
	 * @return
	 */
	List<Map<String, Object>> statisticsRepairTypePie(String startDate, String endDate);

	/**
	 * 根据电压等级和时间段统计折线图
	 * 
	 * @param statisticsType
	 * @param startDate
	 * @param endDate
	 * @return
	 */
	List<Map<String, Object>> statisticsVoltageLevelLine(String statisticsType, String startDate, String endDate);

	/**
	 * 根据维修类型和时间段统计折线图
	 * 
	 * @param statisticsType
	 * @param startDate
	 * @param endDate
	 * @return
	 */
	List<Map<String, Object>> statisticsRepairTypeLine(String statisticsType, String startDate, String endDate);

	/**
	 * 根据电压等级用户统计失压情况
	 * 
	 * @param startDate
	 * @param endDate
	 * @return
	 */
	List<Map<String, Object>> statisticsCustomerVoltageLoss(String startDate, String endDate);
}
